package com.bluemson.service;

import com.bluemson.entity.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * @author mac
 */
public interface AddService {
    ImgResultDto upLoadImg(List<MultipartFile> list, int articleId, HttpServletRequest request);
    String addHead(MultipartFile picture, HttpServletRequest request,int id) throws IOException;
    String addFile(MultipartFile picture, HttpServletRequest request, int id) throws IOException;
    boolean addUser(User user);
    void addArticle(Article article);
    boolean addPlate(Plate plate);
    String addCover(MultipartFile picture, HttpServletRequest request,String name) throws IOException;
    void addComment(Comment comment);
    boolean concernPlate(Concern concern);
    void addReply(Comment comment);
}
